guess = eval(input())
# if guess == 99:
#     print("猜对了")
# else:
#     print("猜错了")

# print("猜{}了".format("对" if guess == 99 else "错"))

if guess > 99 or guess < 99:
    print("猜错了")
else:
    print("猜对了")


score = eval(input())
if score >= 90:
    grade = "A"
elif score >= 80:
    grade = "B"
elif score >= 70:
    grade = "C"
elif score >= 60:
    grade = "D"
print("输入成绩属于级别{}".format(grade))
